package com.tupu.entity.permission;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.List;


/**
 * 权限表
 */
@Data
@TableName("permission_menu")
public class PermissionInfo {

    //主键id 自增
    @TableId(type = IdType.AUTO)
    private Integer permissionId;

    //权限名称
    private String name;

    //权限描述
    private String permissionDes;

    //父id
    private Integer parentId;

    @TableField(exist = false)
    private List<PermissionInfo> children;
}

